#include<sys/types.h>
#include<sys/wait.h>
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{
	int i=0;
	pid_t pid;
	printf("p_pid=%d\n",getppid());
	pid=fork();
	//wait(NULL);
	if(pid==0){
	printf("this pid is %d\n",getpid());
	sleep(10);
	printf("cp_pid=%d\n",getppid());
	}
	
	exit(1);
	
	
	
}
